package org.neuedu.chapter06_0622.demo03;

public class Warrior {
    String name;
    int level;
    int hp;
    int dps;
    Weapon weapon;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getDps() {
        return dps;
    }

    public void setDps(int dps) {
        this.dps = dps;
    }

    public Weapon getWeapon() {
        return weapon;
    }

    public void setWeapon(Weapon weapon) {
        this.weapon = weapon;
    }

    public Warrior(String name) {
        this.name = name;
        this.level = 1;
        this.hp = 200;
        this.dps = 10;
    }

    public Warrior() {
    }
}
